x86: drop a bogus SHARED_M2P() check from PV Dom0 building code
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 14:19:21 +0000 (16:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 14:19:21 +0000 (16:19 +0200)
If anything, a check covering a wider range of invalid M2P entries ought
to be used (e.g. VALID_M2P()). But since everything is fully under Xen's
control at this stage, simply remove the BUG_ON().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/pv/dom0_build.c

index 77efd3918c18205f8bc19bd0a104dfd682a6328d..cb68da75c1e306bcda2657e8687a8944c81883e8 100644 (file)
@@ -821,7 +821,6 @@ int __init dom0_construct_pv(struct domain *d,
     page_list_for_each ( page, &d->page_list )
     {
         mfn = mfn_x(page_to_mfn(page));
-        BUG_ON(SHARED_M2P(get_gpfn_from_mfn(mfn)));
         if ( get_gpfn_from_mfn(mfn) >= count )
         {
             BUG_ON(compat);